//Event lists
Ext.regModel("eventList", {
    fields: [
    {
        name: "id", 
        type: "auto"
    },

    {
        name: "image", 
        type: "string"
    },

    {
        name: "title", 
        type: "string"
    },

    {
        name: "date", 
        type: "auto"
    },

    {
        name: "tags", 
        type: "string"
    }
    ]
});

//Event details
Ext.regModel("eventDetails", {
    fields: [
    {
        name: "id", 
        type: "auto"
    },

    {
        name: "image", 
        type: "string"
    },

    {
        name: "title", 
        type: "string"
    },

    {
        name: "summary", 
        type: "string"
    },

    {
        name: "info", 
        type: "string"
    },

    {
        name: "tools", 
        type: "auto"
    },

    {
        name: "content", 
        type: "auto"
    },

    {
        name: "gallery", 
        type: "auto"
    }
    ]
});
//Favorites items view
Ext.regModel('ListItemfav', {
    fields: [{
        name: 'text', 
        type: 'string'
    },{
        name:'date',
        type:'auto'
    },{
        name:'content',
        type:'auto'
    }]
});

//Contact form
Ext.regModel('ContactFormElem',{
    fields:[{
        name:'title',
        type:'string'     
    },   
    {
        name:'body',
        type:'string'
    },{
        name:'buttons',
        type:'auto'
    },{
        name:'email',
        type:'auto'
    },{
        name:'map',
        type:'auto'
    }]
})
